<!DOCTYPE html>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>条件渲染</title>
    <script src="./js/vue.js"></script>
</head>

<body>
    <!--v -ro循环遍历数组-->
    <ul id="app">
    <ul>
        <li v-for="（item,index） of arr":key="index">{{index}}-{{item}}</li>
        </ul>
    </div>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                arr:['张三','李四','王五','冯三胖','张辉',]
            },
            methods: {}
        })
    </script>
</body>

</html>